package com.bowen.demo.oom;

import java.util.Map;
import java.util.Random;

/**
 * <h3>java-study</h3>
 * <p>垃圾回收超时内存溢出</p>
 * @author : zhang.bw
 * @date : 2021-03-25 11:08
 **/
public class OverheadLimitOomError {

	public static void main(String[] args) {
		Map map = System.getProperties();
		Random random = new Random();
		while (true){
			map.put(random.nextInt(),"猿码天地");
		}
	}
}
